﻿using System;

namespace diantou.web.enterprise
{
    /// <summary>
    /// 试卷内容
    /// </summary>
    [fastCSharp.code.cSharp.webView(IsPage = false, IsPool = true)]
    partial class examPaper : examView<examPaper>
    {
        /// <summary>
        /// 单选多选话题集合
        /// </summary>
        private static readonly fastCSharp.sql.logCache<dataAccess.topic[]> topicCache = new fastCSharp.sql.logCache<dataAccess.topic[]>(diantou.examDataAccess.tcpCall.examQuestionTopic.onAutoPaperLog);
        /// <summary>
        /// 题目话题集合
        /// </summary>
        [fastCSharp.emit.webView.clearMember]
        private dataAccess.topic[] topics
        {
            get
            {
                fastCSharp.sql.logCache<dataAccess.topic[]>.value cache = topicCache.Value;
                if (cache.Value == null)
                {
                    cache.Value = diantou.dataAccess.tcpCall.topic.get(diantou.examDataAccess.tcpCall.examQuestionTopic.getAutoPaperTopicIds());
                    topicCache.Set(ref cache);
                }
                return cache.Value;
            }
        }
        /// <summary>
        /// 是否展开单选题
        /// </summary>
        private bool isAllRadio;
        /// <summary>
        /// 是否展开多选题
        /// </summary>
        private bool isAllMultipleChoice;
        /// <summary>
        /// 是否展开问答题
        /// </summary>
        private bool isAllQuestion;
        /// <summary>
        /// 是否展开编程题
        /// </summary>
        private bool isAllProblem;
        /// <summary>
        /// 
        /// </summary>
        /// <param name="examId"></param>
        /// <returns></returns>
        private bool loadView(int examId)
        {
            return load(examId);
        }
    }
}
